<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>超实用的jQuery图片局部放大浏览插件DEMO演示</title>

<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/zzsc-demo.css">
<link rel="stylesheet" type="text/css" href="css/zoomio.css">
<style type="text/css">
	/* sample CSS to for gallery */

	#gallerycontainer{
		width: 100%;
		max-width: 600px;
		margin: 50px auto;
	}

	#gallery-target{
		width: 100%;
		height: auto;
	}

	#gallery-thumbs{
		text-align: center;
	}

	#gallery-thumbs img{
		width: 120px;
		height: auto;
		margin-right: 20px;
		cursor: pointer;
	}

	/* sample CSS to #celebrity image */

	#celebrity{
		width: 350px;
		height: auto;
	}
</style>

</head>
<body>
<div class="zzsc-container">
	<header class="zzsc-header">
		<div class="zzsc-demo center">
		  <a href="index.html">DEMO1</a>
		  <a href="index2.html" class="current">DEMO2</a>
		</div>
	</header>
	<div id="gallerycontainer">
		<img id="gallery-target" src="img/landscape.jpg" />
		<div id="gallery-thumbs" style="text-align:center"> 
			<img border="0" src="img/landscape-thumb.jpg" onClick="updatezoomioimage('gallery-target', 'img/landscape.jpg')">
			<img border="0" src="img/maldives-thumb.jpg" onClick="updatezoomioimage('gallery-target', 'img/maldives.jpg')">
			<img border="0" src="img/table-thumb.jpg" onClick="updatezoomioimage('gallery-target', 'img/table.jpg')">
			<img border="0" src="img/cutebirds-thumb.jpg" onClick="updatezoomioimage('gallery-target', 'img/cutebirds.jpg')">
		</div>
	</div>
</div>

<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/zoomio.js"></script>
<script type="text/javascript">
	function updatezoomioimage(targetid, src){
		var $ = jQuery
		$('#'+targetid).attr('src', src)
		$('#'+targetid).zoomio()
	}
</script>


</body>
</html>